<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>天天互保-亲友档案</title>
<meta name="keywords" content="天天互保"> 
<meta name="description" content="天天互保"> 
<meta content="width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0,user-scalable=no" name="viewport">
<script src="__JS__/jquery.min.js"></script>
<link rel="stylesheet" href="__CSS__/style.css">
<link rel="stylesheet" href="__CSS__/index.css">
<link rel="stylesheet" href="__CSS__/admin.css">
<link rel="stylesheet" href="__CSS__/type_info.css">
<script src="__JS__/jquery.min.js"></script>
</head>
<body>
<!-- <form action="#"> -->
	<ul class="familylist font14">
	<foreach name="Qarr" item="vo">
		<li>
			<p>{$vo.qname}({$vo.twith})<span>{$vo.qcard}</span></p>
			<!-- <div class="radios"><a href="{:U('Member/qindel/d/'.$vo['id'])}">删除</a></div> -->
			<div class="radios"><a href="javascript:del({$vo['id']})">删除</a></div>
		</li>
	</foreach>
		<li class="nobor_bottom" onclick="window.location.href='__URL__/xinzeng'">
			<p class="addfamilys"><img src="__IMG__/add_qinq.png"/>添加亲情账户</p>
		</li>
	</ul>
<!-- </form> -->

	<!--BEGIN 弹出框-->
	<div class="pop_up" id="pop1" style="display:none;">
		<div class="pop_upbg"></div>
		<div class="pop_uplog font14">
			<div class="pop_title">该亲友还在参与互保计划中，不能删除！</div>
			<div class="pop_button">
				<a href="javascript:;">我知道了</a>
			</div>
		</div>
	</div>
	<!--END 弹出框-->

	<script type="text/javascript">
function del(id) {
    if(confirm("执行后将无法恢复，确定继续吗？温馨提示"))
            {
            	// alert(1)
        $.post('__URL__/qindel', {'qid':id}, function(data){
        		if (data==0) {
        			$('#pop1').show().on('click', '.pop_button a', function () {
				$('#pop1').off('click').hide();
					});
        		}else if(data==1){
        			alert('删除成功');
        			location.reload([true])  
        		}else{
        			alert('删除失败');
        			location.reload([true])  
        		} 
        });
        exit;
        }
    }
</script>

</body>
</html>